<!--
/**
* Author: KSJ
* Date: 2022-07-27 11:18
* Desc: 视频播放
*/
-->
<!-- by your name -->
<template>
  <view class="video-model" @click="close">
    <video
      @click.stop=""
      class="film-video"
      id="myVideo"
      style="width: 100%; transform: translate(0, -50%); top: 50%"
      :autoplay="autoplay"
      :src="src"
      controls="false"
    ></video>
  </view>
</template>

<script>
  export default {
    name: '',
    props: {
      autoplay: {
        type: Boolean
      },
      src: {
        type: String
      }
    },
    data() {
      return {}
    },
    methods: {
      close() {
        this.$emit('close')
      }
    }
  }
</script>
<style lang="scss">
  .video-model {
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: #000;
  }
</style>
